<div class="row" style="margin-top: -1px;">
	<div class="col-md-12">
		<table class="table table-bordered" style="border: none;">
			<tr>
				<th colspan="4" class="text-center">
					<h3>${data.name}</h3>
					<small>[No.] ${data.no}（签订日期：${data.signDate?string('yyyy-MM-dd')}）</small>
				</th>
			</tr>
			<tr>
				<td class="text-center" width="200">
					<b>分包单位</b>
				</td>
				<td width="280">${data.companyB}</td>
				<td class="text-center" width="200">
					<b>分包金额</b>
				</td>
				<td>${(data.priceString)!'-'}</td>
			</tr>
			<tr>
				<td class="text-center" width="200">
					<b>工期</b>
				</td>
				<td colspan="3">${(data.contractStart?string('yyyy-MM-dd'))!''} 至 ${(data.contractEnd?string('yyyy-MM-dd'))!''}</td>
			</tr>
			<tr>
				<td class="text-center" width="200">
					<b>结算方式</b>
				</td>
				<td colspan="3">${data.jiesuanWay}</td>
			</tr>
			<tr>
				<td class="text-center" width="200">
					<b>付款方式</b>
				</td>
				<td colspan="3">${data.fukuanWay}</td>
			</tr>
			<tr>
				<td class="text-center">
					<b>结算金额</b>
				</td>
				<td colspan="3">${(data.clearingPrice?string('currency'))!(0?string('currency'))}（元）</td>
			</tr>
			<tr>
				<td class="text-center">
					<b>质保金</b>
				</td>
				<td>
					<#if data.zbMoney??>
						${((data.zbMoney.total!0)?string('currency'))!''}（元）
						<i class="icon-lightbulb icon-large" style="cursor: pointer; color: #f0ad4e; margin: 0 5px;" 
							data-content="
							开具时间：${(data.zbMoney.time?string('yyyy-MM-dd'))!'-'}
							&lt;br&gt;到期时间：${(data.zbMoney.backTime?string('yyyy-MM-dd'))!'-'}
							&lt;hr style='margin: 5px 0px;'&gt;
							备注：${(data.zbMoney.remark)!'-'}
							"></i>
					<#else>
						-
					</#if>
				 	<#if roles.thisXiangmuManager>
				 		<#include "app/contract/btn-of-back-money/contract-zb-money.ftl">
				 	</#if>
				 </td>
				<td class="text-center">
					<b>挂账金额</b>
				</td>
				<td>
					<#if data.gzMoney??>
						${((data.gzMoney.total!0)?string('currency'))!''}（元）
						<i class="icon-lightbulb icon-large" style="cursor: pointer; color: #f0ad4e; margin: 0 5px;" 
							data-content="
							收取日期：${(data.gzMoney.time?string('yyyy-MM-dd'))!'-'}
							&lt;br&gt;退回日期：${(data.gzMoney.backTime?string('yyyy-MM-dd'))!'-'}
							&lt;hr style='margin: 5px 0px;'&gt;
							备注：${(data.gzMoney.remark)!'-'}
							"></i>
					<#else>
						-
					</#if>
					<#if roles.thisXiangmuManager>
						<#include "app/contract/btn-of-back-money/contract-gz-money.ftl">
					</#if>
				</td>
			</tr>
			<tr>
				<td class="text-center">
					<b>主要内容</b>
				</td>
				<td colspan="3">${data.mainContent!'-'}</td>
			</tr>
			<tr>
				<td class="text-center">
					<b>备注</b>
				</td>
				<td colspan="3">${data.remark!'-'}</td>
			</tr>
		</table>
	</div>
</div>

<div class="row bid-files">
	<#if data.files??> <#list data.files as f>
	<div class="col-md-6 file-item">
		<table style="margin: 15px 0;">
			<tr>
				<td class="text-center" width="70">
					<i class="icon-copy icon-2x text-success"></i>
					<br>
					<b class="text-success">
						<small>[${f.type.value}]</small>
					</b>
				</td>
				<td>
					<a href="${request.contextPath}/viewer/1/${f.id}" target="_blank"> ${f.fileName}${f.suffix} </a>
					<div>
						<small style="margin-right: 10px;">${f.uploadTime?string('yyyy-MM-dd HH:mm:ss')}</small>
						<small>${f.fileSizeString}</small>
					</div>
				</td>
				<#if roles.creator && 'START'==data.status>
				<td class="text-center" width="50">
					<a href="javascript:void(0);" title="移除" target="_blank" class="remove-contract-file" data-id="${f.id}" data-cid="${data.id}" data-pid="${pId}">
						<i class="icon-remove text-danger"></i>
					</a>
				</td>
				</#if>
			</tr>
		</table>
	</div>
	</#list> </#if>
</div>